Method for determining display orientation and electronic apparatus using the same and computer readable recording medium

ABSTRACT

A method for determining display orientation is provided. The method includes the following steps. Sense a plurality of touch points by at least one hold sensor, and determine a holding gesture of the electronic apparatus according to the plurality of touch points. The at least one hold sensor is disposed on at least one side of the electronic apparatus. Determine a holding direction of the electronic apparatus according to the holding gesture. Determine a display orientation of a frame generated by the electronic apparatus according to the holding direction.

This is a continuation application of U.S. application Ser. No.15/439,560, filed on Feb. 22, 2017, which claims the benefit of People'sRepublic of China application Serial No. 201610641344.X, filed on Aug.8, 2016, the disclosure of which is incorporated by reference herein inits entirety.

TECHNICAL FIELD

The disclosure relates in general to a method for determiningorientation and an electronic apparatus, and more particularly to amethod for determining display orientation and an electronic apparatus.

BACKGROUND

With the advent of the multimedia era, the applications of the displaydevice will be expanded. Various electronic apparatus having a displaydevice has been well known and widely used gradually. People often readthe texts or view the pictures through electronic apparatus, and canalso watch the videos through electronic apparatus. An electronicapparatus having a display device typically has two screen modes, theportrait mode and the landscape mode. Generally, the electronicapparatus determines the screen mode automatically through the sensingsignal of the inertial sensor (for example, G-sensor). The function thatthe electronic apparatus automatically determines the screen mode iscalled auto orientation. However, if the screen of the electronicapparatus is parallel to the ground (e.g., the user uses the electronicapparatus when lying down), the G-sensor cannot determine the directioncorrectly, which causes the electronic apparatus to display the frame inwrong screen mode. For example, the user holds the electronic apparatusin landscape mode, but the electronic apparatus displays the frame inportrait mode; or the user holds the electronic apparatus in portraitmode, but the electronic apparatus displays the frame in landscape mode.Therefore, how to correctly determine the display orientation of theelectronic apparatus has become an important topic in the industry.

SUMMARY

According to one embodiment, a method for determining displayorientation is provided. The method includes the following steps. Sensea plurality of touch points by at least one hold sensor, and determine aholding gesture of the electronic apparatus according to the pluralityof touch points. The at least one hold sensor is disposed on at leastone side of the electronic apparatus. Determine a holding direction ofthe electronic apparatus according to the holding gesture. Determine adisplay orientation of a frame generated by the electronic apparatusaccording to the holding direction.

According to another embodiment, an electronic apparatus having afunction of determining display orientation is provided. The electronicapparatus includes at least a hold sensor and a processor. The at leastone hold sensor disposed on at least one side of the electronicapparatus, and the at least one hold sensor senses a plurality of touchpoints. The processor determines a holding gesture of the electronicapparatus according to the plurality of touch points, determines aholding direction of the electronic apparatus according to the holdinggesture, and determines a display orientation of a frame generated bythe electronic apparatus according to the holding direction.

The disclosure further provides a non-transitory computer readablerecording medium for storing one or more programs, the one or moreprograms causing a processor to perform the aforementioned method afterthe one or more programs are loaded on an electronic apparatus and areexecuted.

The above and other aspects of the disclosure will become betterunderstood with regard to the following detailed description of thenon-limiting embodiment(s). The following description is made withreference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a block diagram of an electronic apparatus having afunction of determining display orientation according to an embodimentof the invention.

FIG. 2 shows a plan view of the electronic apparatus of FIG. 1 accordingto an embodiment of the invention.

FIG. 3 shows a plan view of the electronic apparatus of FIG. 1 accordingto another embodiment of the invention.

FIG. 4 shows a flow chart of a method for determining displayorientation according to an embodiment of the invention.

FIG. 5 shows a schematic diagram of a left hand and a right hand of theuser.

FIG. 6A shows a schematic diagram when the left hand holds theelectronic apparatus of FIG. 2.

FIG. 6B shows a schematic diagram of the finger position and palmposition sensed by the hold sensor of FIG. 6A.

FIG. 7A shows a schematic diagram when the right hand holds theelectronic apparatus of FIG. 2 in another holding direction.

FIG. 7B shows a schematic diagram of the finger position and palmposition sensed by the hold sensor of FIG. 7A.

FIG. 7C shows a schematic diagram when the electronic apparatus is heldin landscape mode in one example.

FIG. 7D shows a schematic diagram when the electronic apparatus is heldin landscape mode in another example.

FIG. 8 shows a block diagram of the electronic apparatus having afunction of determining display orientation according to one embodimentof the invention.

FIG. 9 shows a plan view of the electronic apparatus of FIG. 8.

FIG. 10 shows a flow chart of a method for determining displayorientation according to another embodiment of the invention.

FIG. 11A shows a schematic diagram when the left hand holds theelectronic apparatus of FIG. 9.

FIG. 11B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor and the second hold sensor ofFIG. 11A.

FIG. 12A shows a schematic diagram when the right hand holds theelectronic apparatus of FIG. 9.

FIG. 12B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor and the second hold sensor ofFIG. 12A.

FIG. 12C shows a schematic diagram when the electronic apparatus is heldin landscape mode in one example.

FIG. 12D shows a schematic diagram when the electronic apparatus is heldin landscape mode in another example.

FIG. 13A shows a schematic diagram when the left hand holds theelectronic apparatus 200 of FIG. 9.

FIG. 13B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor and the second hold sensor ofFIG. 13A.

FIG. 14A shows a schematic diagram when the right hand holds theelectronic apparatus of FIG. 9.

FIG. 14B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor and the second hold sensor ofFIG. 14A.

FIG. 15 shows a block diagram of the electronic apparatus having afunction of determining display orientation according to an embodimentof the invention.

FIG. 16 shows a plan view of the electronic apparatus of FIG. 15.

FIG. 17 shows a flow chart of a method for determining displayorientation according to an embodiment of the invention.

FIG. 18A shows a schematic diagram when the left hand holds theelectronic apparatus of FIG. 16.

FIG. 18B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor and the second hold sensor ofFIG. 18A.

FIG. 19 shows a plan view of the electronic apparatus according toanother embodiment of the invention.

FIG. 20 shows a schematic diagram of the virtual reality device.

DETAILED DESCRIPTION

Referring to FIG. 1, FIG. 2 and FIG. 3. FIG. 1 shows a block diagram ofan electronic apparatus 100 having a function of determining displayorientation according to an embodiment of the invention. FIG. 2 shows aplan view of the electronic apparatus 100 of FIG. 1 according to anembodiment of the invention. FIG. 3 shows a plan view of the electronicapparatus 100 of FIG. 1 according to another embodiment of theinvention. The electronic apparatus 100 includes a hold sensor 102,processor 104 and a display unit 106. The hold sensor 102 and thedisplay unit 106 are coupled to the processor 104. The hold sensor 102is, but not limited to, a pressure sensor, a capacitive sensor, aresistive sensor or an ultrasonic sensor. The hold sensor 102 can be anysensor which can sense a touch position of the finger. The display unit106 is, for example a liquid crystal display (LCD), for displaying aframe. The electronic apparatus 100 is, for example a tablet computer,or a smart phone. The first side S1 and the second side S2 are shortsides of the electronic apparatus 100, and the third side S3 and fourthside S4 are long sides of the electronic apparatus 100. The hold sensor102 is disposed on the third side S3 or the fourth side S4 of theelectronic apparatus 100, for sensing a holding gesture on at least onelong side of the electronic apparatus 100. The holding gesture includesfinger position or palm position on the hold sensor 102. Based on theactual needs of the present invention, the hold sensor may be disposedon at least one short side of the electronic apparatus, it is notlimited thereto.

Referring to FIG. 4, FIG. 4 shows a flow chart of a method fordetermining display orientation according to an embodiment of theinvention. The method can be applied to electronic apparatus 100 of FIG.2 or FIG. 3.

First, in step S402, the hold sensor 102 senses a plurality of touchpoints, and the processor 104 determines a holding gesture of theelectronic apparatus 100 according to the plurality of touch points. Theholding gesture includes a relative relationship between at least onefinger position and the palm position on the hold sensor 102.Specifically, when the hold sensor 102 senses a dotted touch point, theprocessor 104 determines that the dotted touch point is a finger touch,and the position of the dotted touch point is the finger position. Whenthe hold sensor 102 senses a sheeted touch point, the processor 104determines that the sheeted touch point is a palm touch, and theposition of the sheeted touch point is the palm position. For example,the processor 104 distinguishes the dotted touch point or the sheetedtouch point according to area of the touch point, to determine whetherthe touch point is the finger touch or the palm touch. Or, the holdsensor 102 includes many sensor cells, and the processor 104distinguishes the dotted touch point or the sheeted touch pointaccording to the number of the sensor cells which are touched, todetermine whether the touch point is the finger touch or the palm touch.

Referring to FIG. 5 and FIG. 6. FIG. 5 shows a schematic diagram of aleft hand 502 and a right hand 504 of the user. The left hand 502includes thumb L1, index finger L2, middle finger L3, ring finger L4,little finger L5 and palm PL1. The right hand 504 includes thumb R1,index finger R2, middle finger R3, ring finger R4, little finger R5 andpalm PR1. FIG. 6A shows a schematic diagram when the left hand 502 holdsthe electronic apparatus 100 of FIG. 2. FIG. 6B shows a schematicdiagram of the finger position and palm position sensed by the holdsensor 102 of FIG. 6A. In FIG. 6A, the thumb L1 and the palm PL1 of theleft hand 502 touch the third side S3, and the index finger L2, themiddle finger L3, the ring finger L4 and the little finger L5 of theleft hand 502 touch the fourth side S4. In FIG. 6B, the hold sensor 102senses a dotted touch point L1 and a sheeted touch point PL1′, and theprocessor 104 determines that the dotted touch point L1 is fingerposition, and the sheeted touch point PL1′ is palm position.

Referring to FIG. 7. FIG. 7A shows a schematic diagram when the righthand 504 holds the electronic apparatus 100 of FIG. 2 in another holdingdirection. FIG. 7B shows a schematic diagram of the finger position andpalm position sensed by the hold sensor 102 of FIG. 7A. In FIG. 7A, theright hand 504 holds the electronic apparatus 100 in another holdingdirection, and the thumb R1 and the palm PR1 of the right hand 504 touchthe third side S3, and the index finger R2, the middle finger R3, thering finger R4 and the little finger R5 of the right hand 504 touch thefourth side S4. In FIG. 7B, the hold sensor 102 senses a dotted touchpoint R1′ and a sheeted touch point PR1′, and the processor 104determines that the dotted touch point R1′ is finger position, and thesheeted touch point PR1′ is palm position.

In step S404, the processor 104 determines the holding direction of theelectronic apparatus 100 according to the holding gesture. In theinvention, the holding direction may include a first holding directionand a second holding direction. The first holding direction is, forexample the first side S1 is relative to the second side S2 which pointsupward. The second holding direction is, for example the first side S1is relative to the second side S2 which points downward. Morespecifically, referring to FIG. 6A and FIG. 7A. FIG. 6A shows the firstholding direction D1 of the electronic apparatus 100, and FIG. 7A showsthe second holding direction D2 of the electronic apparatus 100.

Further, the processor 104 determines a thumb position according torelative relationship between the finger position and the palm position,and determines the holding direction of the electronic apparatus 100according to the thumb position. The method of determining the thumbposition according to relative relationship between the finger positionand the palm position by the processor 104 is described as follows. TakeFIG. 6A and FIG. 6B for example, when hold sensor 102 senses the dottedtouch point and sheeted touch point, the processor 104 determines thatat least one dotted touch point of the plurality of touch pointscorresponding to at least one finger position L1, and at least onesheeted touch point of the plurality of touch points corresponding tothe at least one palm position PL1′. Because when the user holds theelectronic apparatus 100, the thumb and the palm will touch the sameside of the electronic apparatus 100. Therefore, the processor 104 candetermine that the finger position L1 on the side which the palmposition PL1′ located (i.e. hold sensor 102) is the thumb position.Then, after the processor 104 obtains the thumb position, the processor104 determines the holding direction of the electronic apparatus 100according to the relative positions of the thumb position and the palmposition on the hold sensor 102. It is described as follows. The holdsensor 102 has the predetermined coordinates, and the processor 104 canobtain the arrangement of the coordinates of the hold sensor 102 inadvance. For example, the minimum value of the coordinates of the holdsensor 102 is arranged close to the second side S2, and the max value ofthe coordinates of the hold sensor 102 is arranged close to the firstside S1. The processor 104 determines whether the thumb position L1locates between the palm position PL1′ and the max value of thecoordinates or locates between the palm position PL1′ and the minimumvalue of the coordinates according to the coordinate of the palmposition PL1′, the coordinate of the thumb position L1, the max value ofthe coordinates and the minimum value of the coordinates, to determinethe holding direction of the electronic apparatus 100. In this example,the processor 104 determines that the thumb position L1 locates betweenthe palm position PL1′ and the max value of the coordinates, so theprocessor 104 determines that the holding direction of the electronicapparatus 100 is the first holding direction D1.

Similarly, take FIG. 7A and FIG. 7B for example, the processor 104determines that the thumb position R1′ locates between the palm positionPR1 and the minimum value of the coordinates, so the processor 104determines that the holding direction of the electronic apparatus 100 isthe second holding direction D2.

In step S406, the processor 104 determines a display orientation of aframe generated by the electronic apparatus according to the holdingdirection. Referring to FIG. 6A and FIG. 6B, when the processor 104determines that the holding direction of the electronic apparatus 100 isthe first holding direction D1, the processor 104 displays the frame inright-side up display orientation (with respect to the first side S1) onthe display unit 106. Referring to FIG. 7A and FIG. 7B, when theprocessor 104 determines that the holding direction of the electronicapparatus 100 is the second holding direction D2, the processor 104displays the frame in upside down display orientation (with respect tothe first side S1) on the display unit 106. Thus, even the electronicapparatus 100 is held upside down, the electronic apparatus 100 stillcan properly adjust the display orientation according to the holdingdirection.

Therefore, in this embodiment, when the hold sensor 102 senses thefinger position and the palm position, the thumb position can bedetermined according to the finger position and the palm position sensedby the hold sensor 102. The holding direction of the electronicapparatus 100 is determined according to the thumb position, and thedisplay orientation is determined based on the holding direction, todisplay the frame correctly.

In one embodiment, the processor 104 can determine whether theelectronic apparatus 100 is held in portrait mode according to sensingresult of the hold sensor 102. When the electronic apparatus 100 is notheld in portrait mode, the processor 104 keeps the auto orientationfunction of the electronic apparatus 100 enabled (i.e. the electronicapparatus 100 activates the function of auto orientation automaticallyaccording to the sensing result of the inertial sensor). For example,when the processor 104 determines that the electronic apparatus 100 isheld in landscape mode, the processor 104 keeps the auto orientationfunction of the electronic apparatus 100 enabled. Referring to FIG. 7Cand FIG. 7D, FIG. 7C shows a schematic diagram when the electronicapparatus 100 is held in landscape mode in one example, and FIG. 7Dshows a schematic diagram when the electronic apparatus 100 is held inlandscape mode in another example. In general, if the user wants towatch the frame of the electronic apparatus 100 in landscape mode, theuser will hold the electronic apparatus 100 as shown in FIG. 7C and FIG.7D. Therefore, when the hold sensor 102 senses only two dotted touchpoints, the processor 104 determines that the electronic apparatus 100is held in landscape mode. On the other hand, when the processor 104determines that the electronic apparatus 100 is held in portrait mode(as shown in FIG. 6A or FIG. 7A), the processor 104 deactivates thefunction of auto orientation. Thus, it can be avoided that theelectronic apparatus 100 rotates the screen wrongly when the user liesdown and uses the electronic apparatus 100.

In the following embodiments, the hold sensor, the processor and thedisplay unit are the same as described in FIG. 1, and the first side S1and the second side S2 are short sides of the electronic apparatus 100,and the third side S3 and the fourth side S4 are the long sides of theelectronic apparatus 100.

Referring to FIG. 8 and FIG. 9. FIG. 8 shows a block diagram of theelectronic apparatus 200 having a function of determining displayorientation according to one embodiment of the invention. FIG. 9 shows aplan view of the electronic apparatus 200 of FIG. 8. The electronicapparatus 200 includes a first hold sensor 202, a second hold sensor204, a display unit 206 and a processor 208. The first hold sensor 202,the second hold sensor 204 and the display unit 206 are coupled to theprocessor 208. The first hold sensor 202 and the second hold sensor 204are disposed on the third side S3 and fourth side S4 of the electronicapparatus 100 respectively, for sensing the holding gesture on the longsides of the electronic apparatus 200. The holding gesture includesfinger position or palm position on the first hold sensor 202 and thesecond hold sensor 204.

Referring to FIG. 10, FIG. 10 shows a flow chart of a method fordetermining display orientation according to another embodiment of theinvention.

First, in step S1202, the first hold sensor 202 and the second holdsensor 204 sense a plurality of touch points, and the processor 104determines the holding gesture of the electronic apparatus 200 accordingto the plurality of touch points. The holding gesture includes arelative relationship between at least one finger position and the palmposition on the first hold sensor 202 and the second hold sensor 204.

Referring to FIG. 11 and FIG. 12. FIG. 11A shows a schematic diagramwhen the left hand 502 holds the electronic apparatus 200 of FIG. 9.FIG. 11B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor 202 and the second hold sensor204 of FIG. 11A. FIG. 12A shows a schematic diagram when the right hand504 holds the electronic apparatus 200 of FIG. 9. FIG. 12B shows aschematic diagram of the finger position and palm position sensed by thefirst hold sensor 202 and the second hold sensor 204 of FIG. 12A. InFIG. 11A, the palm PL1 of the left hand 502 touch the third side S3, andthe index finger L2, the middle finger L3, the ring finger L4 and thelittle finger L5 of the left hand 502 touch the fourth side S4, and thethumb L1 of the left hand 502 does not touch any side of the electronicapparatus 200. In FIG. 11B, the first hold sensor 202 senses a palmposition PL1′, and the second hold sensor 204 senses four fingerpositions L2′, L3′, L4′ and L5′. In FIG. 12A, the palm PR1 of the righthand 504 touch the fourth side S4, and the index finger R2, the middlefinger R3, the ring finger R4 and the little finger R5 of the right hand504 touch the third side S3, and the thumb R1 of the right hand 504 doesnot touch any side of the electronic apparatus 200. In FIG. 12B, thefirst hold sensor 202 senses four finger positions R2′, R3′, R4′ andR5′, and the second hold sensor 204 senses a palm position PR1′.

In step S1204, the processor 208 determines the holding direction of theelectronic apparatus 200 according to the holding gesture. Specifically,the processor 208 determines the holding direction of the electronicapparatus 200 according to the center of gravity of the finger positionand the center of gravity of the palm position. The center of gravityis, for example, the average of coordinates of the positions. The firsthold sensor 202 and the second hold sensor 204 have the predeterminedcoordinates, and the processor 208 can obtain the arrangement of thecoordinates of the first hold sensor 202 and the second hold sensor 204in advance. For example, the minimum value of the coordinates of thefirst hold sensor 202 and the second hold sensor 204 is arranged closeto the second side S2, and the max value of the coordinates of the firsthold sensor 202 and the second hold sensor 204 is arranged close to thefirst side S1. Take FIG. 11A and FIG. 11B for example, the processor 208calculates the center of gravity of four finger positions L2′, L3′, L4′and L5′ and the center of gravity of palm position PL1′. That is, theprocessor 208 calculates the average of the coordinates of four fingerpositions L2′, L3′, L4′ and L5′ and the average of the coordinates ofpalm position PL1′. Then, the processor 208 determines whether thecoordinate of the center of gravity of the finger positions L2′, L3′,L4′ and L5′ is closer to the minimum value of the coordinates or the maxvalue of the coordinates than the coordinate of the center of gravity ofthe palm position PL1′. If the coordinate of the center of gravity ofthe finger positions L2′, L3′, L4′ and L5′ is closer to the max value ofthe coordinates than the coordinate of the center of gravity of the palmposition PL1′, the processor 208 determines that the holding directionof the electronic apparatus 200 is the first holding direction D1. Ifthe coordinate of the center of gravity of the finger positions L2′,L3′, L4′ and L5′ is closer to the minimum value of the coordinates thanthe coordinate of the center of gravity of the palm position PL1′, theprocessor 208 determines that the holding direction of the electronicapparatus 200 is the second holding direction D2. In FIG. 11, thecoordinate of the center of gravity of the finger positions L2′, L3′,L4′ and L5′ is closer to the max value of the coordinates than thecoordinate of the center of gravity of the palm position PL1′, theprocessor 208 determines that the holding direction of the electronicapparatus 200 is the first holding direction D1. In FIG. 12, thecoordinate of the center of gravity of the finger positions R2′, R3′,R4′ and R5′ is closer to the max value of the coordinates than thecoordinate of the center of gravity of the palm position PR1′, theprocessor 208 determines that the holding direction of the electronicapparatus 200 is the first holding direction D1. In this embodiment, wetake four finger positions as an example, but not limited thereto. It isapplicable that the first hold sensor 202 or the second hold sensor 204senses at least one finger position, and the processor 208 calculatesthe center of gravity according to the at least one finger position anddetermines the relative relationship between the center of gravity ofthe finger position and the center of gravity of the palm position.

In another embodiment, the processor 208 determines the holdingdirection of the electronic apparatus 200 according to the relativerelationship between the finger position and the palm position, notaccording to the center of gravity of the finger position and the centerof gravity of the palm position.

The method of determining the holding direction of the electronicapparatus 200 according to the relative relationship between the fingerposition and the palm position by the processor 208 is described asfollows. Take FIG. 11A and FIG. 11B for example, the processor 208determines whether at least one coordinate interval which four fingerpositions L2′, L3′, L4′ and L5′ locate on is closer to the minimum valueof the coordinates or the max value of the coordinates than thecoordinate interval which palm position PL1′ locates on, according tothe coordinate intervals which four finger positions locate and thecoordinate interval which palm positions locate. If the coordinateinterval which at least one finger position locates on is closer to themax value of the coordinates than the coordinate interval which palmposition PL1′ locates on, the processor 208 determines that the holdingdirection of the electronic apparatus 200 is the first holding directionD1. If the coordinate interval which at least one finger positionlocates on is closer to the minimum value of the coordinates than thecoordinate interval which palm position PL1′ locates on, the processor208 determines that the holding direction of the electronic apparatus200 is the second holding direction D2. In FIG. 11, the coordinateintervals which the finger positions L2′ and L3′ locate on are closer tothe max value of the coordinates than the coordinate interval which palmposition PL1′ locates on, so the processor 208 determines that theholding direction of the electronic apparatus 200 is the first holdingdirection D1. In FIG. 12, the coordinate intervals which the fingerpositions R2′ and R3′ locate on are closer to the max value of thecoordinates than the coordinate interval which palm position PR1 locateson, so the processor 208 determines that the holding direction of theelectronic apparatus 200 is the first holding direction D1. In thisembodiment, we take four finger positions as an example, but not limitedthereto. It is applicable that the first hold sensor 202 or the secondhold sensor 204 senses at least one finger position, and the processor208 determines the relative relationship between the finger position andthe palm position according to the at least one finger position and thepalm position.

In step S1206, the processor 208 determines the display orientation of aframe generated by the electronic apparatus 200 according to the holdingdirection. For example, referring to FIG. 11A and FIG. 11B, when theprocessor 208 determines that the holding direction of the electronicapparatus 200 is the first holding direction D1, the processor 208displays the frame in right-side up display orientation (with respect tothe first side S1) on the display unit 206. In other hand, when theprocessor 208 determines that the holding direction of the electronicapparatus 200 is the second holding direction D2, the processor 208displays the frame in upside down display orientation (with respect tothe first side S1) on the display unit 206.

Thus, even the user holds the electronic apparatus 200 and the thumbdoes not touch the electronic apparatus 200, the electronic apparatus200 can estimate how the electronic apparatus 200 is held by the useraccording to the at least one finger position and the palm positionsensed by the hold sensors disposed on the two sides of the electronicapparatus 200. The holding direction of the electronic apparatus 200 isdetermined according to the at least one finger position and the palmposition, and display orientation is determined based on the holdingdirection, to display the frame correctly.

Similarly, the processor 208 can determine whether the electronicapparatus 200 is held in portrait mode according to sensing result ofthe hold sensors 202 and 204. When the electronic apparatus 200 is notheld in portrait mode, the processor 208 keeps the auto orientationfunction of the electronic apparatus 200 enabled (i.e. the electronicapparatus 200 activates the function of auto orientation automaticallyaccording to the sensing result of the inertial sensor). For example,referring to FIG. 12C and FIG. 12D, FIG. 12C shows a schematic diagramwhen the electronic apparatus 200 is held in landscape mode in oneexample. FIG. 12D shows a schematic diagram when the electronicapparatus 200 is held in landscape mode in another example. In oneembodiment, if the user holds the electronic apparatus 200 as shown inFIG. 12C and FIG. 12D, the hold sensor 202 and the hold sensor 204 sensefour dotted touch points, and the processor 208 can determine that theelectronic apparatus 200 is held in landscape mode, so the processor 208keeps on the auto orientation function.

Referring to FIG. 13 and FIG. 14. FIG. 13A shows a schematic diagramwhen the left hand 502 holds the electronic apparatus 200 of FIG. 9.FIG. 13B shows a schematic diagram of the finger position and palmposition sensed by the first hold sensor 202 and the second hold sensor204 of FIG. 13A. FIG. 14A shows a schematic diagram when the right hand504 holds the electronic apparatus 200 of FIG. 9. FIG. 14B shows aschematic diagram of the finger position and palm position sensed by thefirst hold sensor 202 and the second hold sensor 204 of FIG. 14A. InFIG. 13A, the palm PL1 of the left hand 502 touch the third side S3, andthe index finger L2, the middle finger L3 and the ring finger L4 of theleft hand 502 touch the fourth side S4. In FIG. 13B, the first holdsensor 202 senses a palm position PL1′ and the second hold sensor 204senses three finger positions L2′, L3′ and L4′. And the palm positionPL1′ and the three finger positions L2′, L3′ and L4′ are close to thesame side (i.e. the second side S2) of the electronic apparatus 200. InFIG. 14A, the palm PR1 of the right hand 504 touch the fourth side S4,and the index finger R2, the middle finger R3 and the ring finger R4 ofthe right hand 504 touch the third side S3. In FIG. 14B, the first holdsensor 202 senses three finger positions R2′, R3′ and R4′ and the secondhold sensor 204 senses a palm position PR1′. And the palm position PR1′and the three finger positions R2′, R3′ and R4′ are close to the sameside (i.e. the second side S2) of the electronic apparatus 200.

In another embodiment, in step S1202, if the finger position and thepalm position sensed by the first hold sensor 202 and the second holdsensor 204 as shown in FIG. 13A and FIG. 14A, that is, the fingerposition and the palm position locate on the same sensing region. Then,in step S1204, the processor 208 determines the holding direction of theelectronic apparatus 200 according to the sensing region which thecenter of gravity of the finger position and the center of gravity ofthe palm position locate on.

Specifically, the processor 208 divides the sensing regions of the firsthold sensor 202 and the second hold sensor 204, and determines thesensing region which the center of gravity of the finger position andthe center of gravity of the palm position locate on, and determines theholding direction of the electronic apparatus 200. For example, as shownin FIG. 13B and FIG. 14B, the sensing regions of the first hold sensor202 and the second hold sensor 204 are divided into two equivalentregions according to middle line m1. That is, on the basis of line m1,the sensing region of the first hold sensor 202 is divided into asensing region close to the first side S1 and a sensing region close tothe second side S2, and the sensing region of the second hold sensor 204is divided into a sensing region close to the first side S1 and asensing region close to the second side S2.

Then, the processor 208 determines that the center of gravity of thefinger position and the center of gravity of the palm position locate onwhich sensing region of the first hold sensor 202 and the second holdsensor 204. Take FIG. 13B for example, if the processor 208 determinesthat the center of gravity of the palm position PL1′ locates on thesensing region close to the second side S2 and the center of gravity ofthe finger positions L2′, L3′ and L4′ locates on the second side S2, theprocessor 208 determines that the holding direction of the electronicapparatus 200 is the first holding direction D1. Take FIG. 14B forexample, if the processor 208 determines that the center of gravity ofthe palm position PR1 locates on the sensing region close to the secondside S2 and the center of gravity of the finger positions R2′, R3′ andR4′ locates on the second side S2, the processor 208 determines that theholding direction of the electronic apparatus 200 is the first holdingdirection D1. Conversely, if the processor 208 determines that thecenter of gravity of the palm position and the center of gravity of atleast one finger position locate on the sensing region close to thefirst side S1, the processor 208 determines that the holding directionof the electronic apparatus 200 is the second holding direction D2. Inthis embodiment, we take three finger positions as an example, but notlimited thereto. It is applicable that the first hold sensor 202 or thesecond hold sensor 204 senses at least one finger position, and theprocessor 208 determines that the center of gravity locates on whichsensing region according to the center of gravity of the at least onefinger position and the center of gravity of the palm position.

Thus, even when the palm position and the finger position are close tothe same side, the processor 208 can still determine the holdingdirection of the electronic apparatus 200 according to the sensingregion of the first hold sensor 202 and the second hold sensor 204 whichthe center of gravity of the finger position and the center of gravityof the palm position locate on. And the display orientation isdetermined based on the holding direction, to display the framecorrectly.

Referring to FIG. 15 and FIG. 16. FIG. 15 shows a block diagram of theelectronic apparatus 300 having a function of determining displayorientation according to an embodiment of the invention. FIG. 16 shows aplan view of the electronic apparatus 300 of FIG. 15. The electronicapparatus 300 includes the first hold sensor 302, the second hold sensor304, the display unit 306, the processor 308 and the fingerprint sensor310. The first hold sensor 302, the second hold sensor 304, the displayunit 306 and the fingerprint sensor 310 are coupled to the processor308. The first hold sensor 302 and the second hold sensor 304 aredisposed on the long sides of the electronic apparatus 300 respectively.The holding gesture includes finger position or palm position on thefirst hold sensor 302 and the second hold sensor 304. The fingerprintsensor 310 is disposed on one of the long sides of the electronicapparatus 300, for identifying the fingerprint of the finger. Forexample, as shown in FIG. 16, the fingerprint sensor 310 is disposed onthe fourth side S4. In another embodiment, the electronic apparatus 300can include two fingerprint sensors which are disposed on the two longsides of the electronic apparatus 300 respectively. The position and thenumber of the fingerprint sensor 310 are not limited in the invention.

Referring to FIG. 17, FIG. 17 shows a flow chart of a method fordetermining display orientation according to an embodiment of theinvention. In this embodiment, the processor 308 determines whether thepalm position is sensed. And, the fingerprint sensor 310 senses thefingerprint to identify the finger. Then, the processor 308 determinesthe holding direction of the electronic apparatus 300, and determinesthe display orientation of a frame generated by the electronic apparatus300 according to the holding direction.

In step S1902, the processor 308 determines whether the palm positionsensed by the first hold sensor 302 or the second hold sensor 304. Whenthe sheeted touch point is sensed by the first hold sensor 302 or thesecond hold sensor 304, the processor 308 determines the palm positionis sensed, and the method proceeds to step S1904. When the palm positionis not sensed, the method proceeds to end step. Referring to FIG. 18Aand FIG. 18B, FIG. 18A shows a schematic diagram when the left hand 502holds the electronic apparatus 300 of FIG. 16. FIG. 18B shows aschematic diagram of the finger position and palm position sensed by thefirst hold sensor 302 and the second hold sensor 304 of FIG. 18A. InFIG. 18A, the palm PL1 and the thumb L1 of the left hand 502 touch thethird side S3, and the index finger L2, the middle finger L3, the ringfinger L4, and little finger L5 of the left hand 502 touch the fourthside S4. In FIG. 18B, the first hold sensor 302 senses a palm positionPL1′.

In step S1904, the fingerprint sensor 310 identifies a finger.Specifically, the electronic apparatus 300 stores the fingerprints ofevery finger of the user in advance, and the fingerprints are used foridentifying. Referring to FIG. 18B, the fingerprint sensor 310 sensesthe fingerprint of the finger position L3′, and identifies the middlefinger L3 of the left hand 502 according to the fingerprints stored inadvance.

In step S1906, the processor 308 determines the holding direction of theelectronic apparatus 300 according to the finger identified by thefingerprint sensor 310. In one embodiment, the fingerprint sensor 310 isdisposed on the fourth side S4 of the electronic apparatus 300. If thefingerprint sensor 310 identifies one of the index finger L2, middlefinger L3, ring finger L4 and little finger L5 of the left hand 502, theprocessor 308 determines that the holding direction of the electronicapparatus 300 is the first holding direction D1. If the fingerprintsensor 310 identifies one of the index finger R2, middle finger R3, ringfinger R4 and little finger R5 of the right hand 504, the processor 308determines that the holding direction of the electronic apparatus 300 isthe second holding direction D2. In one embodiment, the fingerprintsensor 310 is disposed on the third side S3 of the electronic apparatus300 (not shown). If the fingerprint sensor 310 identifies the thumb L1of the left hand 502, the processor 308 determines that the holdingdirection of the electronic apparatus 300 is the first holding directionD1. If the fingerprint sensor 310 identifies the thumb R1 of the righthand 504, the processor 308 determines that the holding direction of theelectronic apparatus 300 is the second holding direction D2.

In step S1908, the processor 308 determines the display orientation ofthe frame generated by the electronic apparatus 300 according to theholding direction.

Thus, when the first hold sensor 302 or the second hold sensor 304senses the palm position, the holding direction of the electronicapparatus 300 is determined by the finger identified by the fingerprintsensor 310. And the display orientation is determined based on theholding direction, to display the frame correctly.

Referring to FIG. 19, FIG. 19 shows a plan view of the electronicapparatus 400 according to another embodiment of the invention. Theelectronic apparatus 400 include a display unit 402, a first voice inputunit 404, a first voice output unit 406, a first proximity sensor 408, asecond voice input unit 410, a second voice output unit 412, and asecond proximity sensor 414. The first voice input unit 404 and thesecond voice input unit 410 are, for example a microphone. The firstvoice output unit 406 and the second voice output unit 412 are, forexample a microphone. The first voice input unit 404, the first voiceoutput unit 406, and the first proximity sensor 408 are disposed on afirst area A1 of the electronic apparatus 400, and the second voiceinput unit 410, the second voice output unit 412, and the secondproximity sensor 414 are disposed on a second area A2 of the electronicapparatus 400, and the first area and the second area are located on theopposite sides of the electronic apparatus 400. For example, the firstarea A1 is close to the first side S1 and the second area A2 is close tothe second side S2. In one embodiment, the processor 308 enables thefirst voice input unit 404, the first voice output unit 406, the firstproximity sensor 408 and the second voice input unit 410, the secondvoice output unit 412 and the second proximity sensor 414, according tothe hold direction. More specifically, when the processor 308 determinesthat the holding direction of the electronic apparatus 400 is the firstholding direction D1, the processor 308 enables the first voice outputunit 406 and the first proximity sensor 408 in the first area A1, andthe second voice input unit 410 in the second area A2. Conversely, whenthe processor 308 determines that the holding direction of theelectronic apparatus 400 is the second holding direction D2, theprocessor 308 enables the voice output unit 412 and the second proximitysensor 414 in the second area A2, and the first voice input unit 404 inthe first area A1.

The electronic apparatus described in the aforementioned embodiments,for example, the electronic apparatus 100, 200 and 300, may be a virtualreality (VR) device, and the aforementioned frame may be a frame outputby the virtual reality device. Referring to FIG. 20, FIG. 20 shows aschematic diagram the virtual reality device 600. The user holds ahandheld object, the handheld object, for example, a wood shaped like acell phone (not shown). The processor and the hold sensor described inthe aforementioned embodiments can be disposed in the wood, and theprocessor can perform the method for determining the display orientationdescribed in the aforementioned embodiments. After the processordetermines the holding direction of the wood, the processor determinesthe display image corresponding to the position of the wood in the frameof the virtual reality device 600. For example, the processor displays acell phone image corresponding to the position of the wood in the frameof the virtual reality device 600. Therefore, the user can see a cellphone rather than a wood in the frame of the virtual reality device 600.

In another embodiment, the processor keeps the auto orientation function(or does not perform the method for determining the display orientationdescribed in the aforementioned embodiments) of the electronic apparatusenabled according to the type of the application currently executing onthe electronic apparatus. For example, after a specific application (forexample, a photo application) is executed, the method for determiningthe display orientation described in the aforementioned embodiments isnot performed. Thus, when the user uses a specific application, thedisplay orientation is prevented from changing so the user is notaffected.

Base on the above, the holding gesture of the electronic apparatus issensed by the hold sensor, and the holding direction of the electronicapparatus is determined according to the holding gesture, then a displayorientation of a frame is determined according to the holding direction.Even when the screen of the electronic apparatus is parallel to theground, the holding direction is determined correctly according to thehold sensor, therefore the frame can be displayed in a correct displayorientation. It can be more effective to improve occurrence of the wrongdisplay orientation, so that the user can watch the frame with thecorrect display orientation.

It will be apparent to those skilled in the art that variousmodifications and variations can be made to the disclosed embodiments.It is intended that the specification and examples be considered asexemplary only, with a true scope of the disclosure being indicated bythe following claims and their equivalents.

What is claimed is:
 1. A method for determining a display orientation ofa frame generated by an electronic apparatus, comprising: enabling anauto orientation function of the electronic apparatus; sensing aplurality of touch points a plurality of hold sensors, wherein theplurality of hold sensors comprise a first hold sensor disposed on afirst side of the electronic apparatus and a second hold sensor disposedon a second side of the electronic apparatus, and the first side isopposite to the second side; determining whether the electronicapparatus is held in a portrait mode or a landscape mode according to asensing result of the plurality of hold sensors, wherein the electronicapparatus is determined to be held in the landscape mode in response tothe first hold sensor sensing two dotted touch points on the first sideand the second hold sensor sensing another two dotted touch points onthe second side; and determining whether to keep or deactivate the autoorientation function of the electronic apparatus according to theelectronic apparatus being held in the portrait mode or the landscapemode.
 2. The method according to claim 1, wherein the step ofdetermining whether to keep or deactivate the auto orientation functionof the electronic apparatus according to the electronic apparatus beingheld in the portrait mode or the landscape mode comprises: keeping theauto orientation function of the electronic apparatus enabled inresponse to a determination that the electronic apparatus is not held inthe portrait mode.
 3. The method according to claim 2, wherein the stepof determining whether to keep or deactivate the auto orientationfunction of the electronic apparatus according to the electronicapparatus being held in the portrait mode or the landscape mode furthercomprises: keeping the auto orientation function of the electronicapparatus in response to a determination that the electronic apparatusis held in the landscape mode.
 4. The method according to claim 1,wherein the step of determining whether to keep or deactivate the autoorientation function of the electronic apparatus according to theelectronic apparatus being held in the portrait mode or the landscapemode comprises: deactivating the auto orientation function of theelectronic apparatus in response to a determination that the electronicapparatus is held in the portrait mode.
 5. The method according to claim1, wherein the electronic apparatus is determined to be held in theportrait mode in response to the first hold sensor sensing a sheetedtouch point and a dotted touch point on the first side.
 6. The methodaccording to claim 1, wherein the electronic apparatus is determined tobe held in the portrait mode in response to the first hold sensorsensing at least one dotted touch point on the first side and the secondhold sensor sensing a sheeted touch point on the second side.
 7. Themethod according to claim 1, wherein the electronic apparatus comprisesan inertial sensor, wherein the auto orientation function is foradjusting a display orientation of a frame generated by the electronicapparatus according to a sensing signal of the inertial sensor.
 8. Anon-transitory computer readable recording medium for storing one ormore programs, the one or more programs causing a processor to performthe method according to claim 1 after the one or more programs areloaded on a computer and are executed.
 9. An electronic apparatus havinga function of determining a display orientation, comprising: a pluralityof hold sensors, for sensing a plurality of touch points, wherein theplurality of hold sensors comprise a first hold sensor disposed on afirst side of the electronic apparatus and a second hold sensor disposedon a second side of the electronic apparatus, and the first side isopposite to the second side; and a processor, coupled to the pluralityof hold sensors and configured for: enabling an auto orientationfunction of the electronic apparatus; sensing a plurality of touchpoints by the plurality of hold sensors; determining whether theelectronic apparatus is held in a portrait mode or a landscape modeaccording to a sensing result of the plurality of hold sensors, whereinthe processor determines that the electronic apparatus is determined tobe held in the landscape mode in response to the first hold sensorsensing two dotted touch points on the first side and the second holdsensor sensing another two dotted touch points on the second side; anddetermining whether to keep or deactivate the auto orientation functionof the electronic apparatus according to the electronic apparatus beingheld in the portrait mode or the landscape mode.
 10. The electronicapparatus according to claim 9, wherein the processor keeps the autoorientation function of the electronic apparatus enabled in response toa determination that the electronic apparatus is not held in theportrait mode.
 11. The electronic apparatus according to claim 10,wherein the processor deactivates the auto orientation function of theelectronic apparatus in response to a determination that the electronicapparatus is held in the portrait mode.
 12. The electronic apparatusaccording to claim 11, wherein the processor keeps the auto orientationfunction of the electronic apparatus in response to a determination thatthe electronic apparatus is held in the landscape mode.
 13. Theelectronic apparatus according to claim 9, wherein the processordetermines that the electronic apparatus is held in the portrait mode inresponse to the first hold sensor sensing a sheeted touch point and adotted touch point on the first side.
 14. The electronic apparatusaccording to claim 9, wherein the processor determines that theelectronic apparatus is held in the portrait mode in response to thefirst hold sensor sensing at least one dotted touch point on the firstside and the second hold sensor sensing a sheeted touch point on thesecond side.
 15. The electronic apparatus according to claim 9, whereinthe electronic apparatus comprises an inertial sensor, the autoorientation function is for adjusting a display orientation of a framegenerated by the electronic apparatus according to a sensing signal ofthe inertial sensor of the electronic apparatus.